package com.xuecheng.comment.convert;


import com.xuecheng.api.comment.model.dto.CommentDTO;
import com.xuecheng.api.comment.model.dto.CommentReplyDTO;
import com.xuecheng.comment.entity.CommentReply;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CommentReplyConvert {

    CommentReplyConvert INSTANCE = Mappers.getMapper(CommentReplyConvert.class);

    List<CommentReplyDTO> entitys2dtos(List<CommentReply> commentList);

    CommentReplyDTO entity2dto(CommentReply commentReply);
}
